import router from '@r'
import { componentsPlugin } from './components'

/** 
 *插件集
 *@type {import("vue").Plugin[]}
 */
const plugins = [
    router, componentsPlugin

]

/**
 * 批量注册插件
 * @param {import("vue").App} app 
 * @returns 
 */
//  export const usePlugins = app => plugins.forEach(plugin=>app.use(plugin), app)  简化代码
export const usePlugins = app => plugins.forEach(app.use, app)